<?php
declare (strict_types=1);

namespace app\common\model;

use cores\BaseModel;

/**
 * 用户表模型
 * Class User
 * @package app\common\model
 */
class User extends BaseModel
{
    // 定义表名
    protected $name = 'user';

    // 定义主键
    protected $pk = 'user_id';

    /**
     * 追加字段
     * @var array
     */
    protected $append = [];

    /**
     * 学员详情
     * @param $where
     * @param array $with
     * @return array|static|null
     */
    public static function detail($where, array $with = [])
    {
        return static::get($where, $with);
    }

}
